<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html lang="fr">
	<head>
		<title>Back office Bitstrip(s) - Gérer les avatars</title>
		<meta charset="UTF-8"/>
		<link rel="stylesheet" type="text/css" href="/bitstrip/assets/css/back_office.css"/>
        <link href='http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
		<jsp:include page="menu_bo.jsp"/>
	</head>
	<body>
		<c:if test="${ajouterVide == true}"> 
			<div class="message-box error show">
				Veuillez remplir tous les champs du formulaire. 
			</div>
		</c:if>	
		
	<div class="bo-container"> 
		<form:form commandName="avatar" id="avatar-ajout" action="/bitstrip/ajouter_avatar" method="post" enctype="multipart/form-data">
			<fieldset>
			<legend>Avatar</legend>
					<form:hidden path="id"/>
					<form:hidden path="version"/>
				<br>
					<h3><form:radiobutton path="genre" value="M" checked="true"/>Homme</br></h3>
					<h3><form:radiobutton path="genre" value="F"/>Femme</h3>
					</br>
					</br>
					</br>
					<h3><input type="file" name="photo"/></h3>
					<input type="submit" name="valider" value="Valider">
			</fieldset>
		</form:form>
	</div>
	</body>
</html>